package tt

type test1 struct {
	name  string
	age   int
	child test2
}

type test2 struct {
	childName string
	childAge  int
}

func (test1) get_child(name string, age int) *test1 {
	pp := test1{name: name, age: age}
	cc := test2{childName: name + "child", childAge: age - 1}
	pp.child = cc
	return &pp
}
